﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Windows.Crypto
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Runtime.CompilerServices;
using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine.Windows
{
  /// <summary>
  ///   <para>Class representing cryptography algorithms.</para>
  /// </summary>
  public static class Crypto
  {
    /// <summary>
    ///   <para>Computes MD5 hash value for the specified byte array.</para>
    /// </summary>
    /// <param name="buffer">The input to compute the hash code for.</param>
    [NativeHeader("PlatformDependent/MetroPlayer/Bindings/WindowsCryptoBindings.h")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern byte[] ComputeMD5Hash([Unmarshalled] byte[] buffer);

    /// <summary>
    ///   <para>Computes SHA1 hash value for the specified byte array.</para>
    /// </summary>
    /// <param name="buffer">The input to compute the hash code for.</param>
    [NativeHeader("PlatformDependent/MetroPlayer/Bindings/WindowsCryptoBindings.h")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern byte[] ComputeSHA1Hash([Unmarshalled] byte[] buffer);
  }
}
